<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'addexam.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="${pageContext.request.contextPath}/css/style2.css" rel="stylesheet">
	<link href="${pageContext.request.contextPath}/css/stylebase.css" rel="stylesheet">
	<script src="${pageContext.request.contextPath}/js/jquery-2.1.0.js"></script>
	<script src="${pageContext.request.contextPath}/js/addexem.js"></script>
  </head>
  

    <body>
    <div id="divMain">

    <s:form action="/question/QuestionAction_add.do" method="post" id="dark-matter">
		<h1>Add paper Form
			<span>Please fill all the texts in the fields.</span>
		</h1>
		<label>
			<span>Exem Question :</span>
			<s:textarea name="question" id="message" placeholder="Input question to Us" />	
		</label>
		<label>
			<span>Type :</span>
			<select id="selection" name="type">
				<option value="0">chose question type</option>
				<option value="单选题">单选题</option>
				<option value="多选题">多选题</option>
				<option value="填空题">填空题</option>
			</select>
		</label>
		<div id="option" style="display: none;">
		<div id="option1">
		<label>
			<span>Option A :</span>
			<s:textfield placeholder="Input Option A" name="answerA" />
		</label>	
		<label>
			<span>Option B :</span>
			<s:textfield placeholder="Input Option B" name="answerB" />
		</label>
		
		<label>
			<span>Option C :</span>
			<s:textfield placeholder="Input Option C" name="answerC" />
		</label>
		<label>
			<span>Option D :</span>
			<s:textfield placeholder="Input Option D" name="answerD" />
		</label>
		</div>
		<label id="add2">
			<span></span>
			<input type="button" id="add1" value="Add a option " />
		</label>
		</div>
		<label>
			<span>Answer :</span>
			<s:textfield placeholder="Input Answer" name="answer" />
		</label>
		
		<label>
			<span>Score :</span>
			<s:textfield placeholder="Input Score" name="score" id="score" />
		</label>
		<label>
			<span>&nbsp;</span>
			<s:submit id="button" value="Add" />
		</label>
		</s:form>
		</div>
	</body>

</html>
